package com.znz.domain;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import java.util.Date;

/**
 * 客服与医院就订单的聊天记录
 * Created by IntelliJ IDEA.
 * User: johnson
 * Date: 5/7/15
 * Time: 3:47 下午
 */

@RooJavaBean
@RooToString
@RooJpaActiveRecord(versionField="",identifierColumn = "id", identifierField = "id",table = "t_order_hospital_chat")
public class Torderhospitalchat {


//	订单ID,对应t_order表ID
    @OneToOne
    @JoinColumn(name="order_id")
	private Torder torder;
    //	订单号
    @Column(name="order_no")
	private Integer order_no;
    //	医院ID
    @OneToOne
    @JoinColumn(name="hospital_id")
    private Thospital thospital;
    //	医院用户ID
    @ManyToOne
    @JoinColumn(name = "h_user_id")
	private Person person;

//	客服ID
    @ManyToOne
    @JoinColumn(name="c_user_id")
	private Tcustomer tcustomer;

//	用户名
    @Column(name="c_user_name")
	private String cUserName;

//	聊天内容
    @Column(name = "content")
	private String content;

//	创建日期
    @Column(name = "create_date")
	private Date create_date;




}
